<?php
  //global $customer_id;
  require('includes/application_top.php');
  require('includes/classes/http_client.php');

  $breadcrumb->add('Trợ giúp', tep_href_link('helps.php', '', 'SSL'));   
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
    <title><?php echo TITLE; ?></title>
    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">         
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
  <tr>
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
    </table></td>
<!-- body_text //-->
    <td width="100%" valign="top" align="left">                
    <table border="0" cellpadding="4" cellspacing="4" width="100%">
    <div class="home-newprodbar">
                    <div class="lblTitle">Hướng dẫn - Trợ giúp</div>
                </div><br /><br /><br /> 
        <!--<tr><td class="title_orders" colspan="2" style="padding-left: 15px;">Chi tiết trợ giúp</td></tr>-->
        <tr><td align="left">
        <?php
            $hid = $_REQUEST['hid'];
            
            $helps_query_raw = "select * from helps where id = '".$hid."' order by title ";
            $helps_query = tep_db_query($helps_query_raw);
            while ($helps = tep_db_fetch_array($helps_query)) {
        ?>
              <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
                <tr class="infoBoxContents">
                  <td class="main" valign="top" style="font-size: 13pt; color: #2ba7fa;padding-bottom: 10px;"><b><?php echo $helps['title'] ?></b></td>
                </tr>
                <tr class="infoBoxContents">
                  <td class="main" valign="top">Ngày tạo: <?php echo $helps['created'] ?></td>
                </tr>
                <tr class="infoBoxContents">
                  <td class="main" valign="top" style="text-align: justify;"><?php echo $helps['full_text'] ?></td>
                </tr>
                
                <tr>
                    <td class="bold_text" style="padding-left: 30px;padding-top: 20px;">Các bài hướng dẫn khác:</td>
                </tr>
                <tr><td><ul>
                <?php
                    $helps_other_query_raw = "select * from helps where id != '".$hid."' order by created ";
                    $helps_other_query = tep_db_query($helps_other_query_raw);
                    while ($helps_other = tep_db_fetch_array($helps_other_query)) {
                ?>
                    <li>
                        <a class="helps_link" href="helps_detail.php?hid=<?php echo $helps_other['id']; ?>" title="<?php echo $helps_other['title']; ?>">
                            <!--<img src="templates/phuocndt/images/arrow.jpg" border="0" />-->
                            <?php echo $helps_other['title']; ?>
                            <?php //echo ' - '.$helps_other['created']; ?>
                        </a>
                    </li>
                <?php } ?>
                </ul></td></tr>
              </table>
        <?php
            }            
        ?>
        </td></tr>    
    </table>
</td>
<!-- body_text_eof //-->
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
    </table></td>
  </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
